#include "qdesigner.h"

#include "designerworkbench.h"
#include <QtDesigner/QDesignerComponents>
#include <QTextCodec>

QDesigner::QDesigner(int &argc, char **argv)
    : QApplication(argc, argv)
{
    setApplicationName("ScriptDesinger");
    setOrganizationName("SavushkinProduct");
    QTextCodec *utf8 = QTextCodec::codecForName("UTF-8");
    QTextCodec::setCodecForCStrings(utf8);
    initialize();
}

QDesigner::~QDesigner()
{
    QDesignerWorkbench::destroy();
    m_workbench = 0;
}

void QDesigner::initialize()
{
    m_workbench = QDesignerWorkbench::instance();
    emit initialized();
}
